package ca.ericslandry.shared.domain;

import javax.persistence.Id;
/**
 * Represents a counter in the datastore and stores the number of shards.
 * 
 * @author j.s@google.com (Jeff Scudder)
 * @author <a href="mailto:eric.s.landry@gmail.com">Eric Landry</a> (Objectified)
 */
public class DatastoreCounter {
	@Id
	Long id;
	String counterName;
	Integer numShards;

	public DatastoreCounter(String counterName) {
		this.counterName = counterName;
		this.numShards = new Integer(0);
	}

	public DatastoreCounter(String counterName, Integer numShards) {
		this.counterName = counterName;
		this.numShards = numShards;
	}

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public String getCounterName() {
		return counterName;
	}

	public void setCounterName(String counterName) {
		this.counterName = counterName;
	}

	public Integer getNumShards() {
		return numShards;
	}

	public void setNumShards(Integer numShards) {
		this.numShards = numShards;
	}
}
